package com.skywolf.chem.live.mapper;

import com.skywolf.chem.live.entity.Videocomment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skywolf.chem.live.param.CommentDto;
import com.skywolf.chem.live.param.VideoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 视频评论表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-12-01
 */
@Mapper
public interface VideocommentMapper extends BaseMapper<Videocomment> {

    List<CommentDto> getCommentPageList(@Param("startNum") Long startNum, @Param("endNum") Long endNum,
                                        @Param("videoId")Long videoId,@Param("uid")Long uid);

    Integer getCommentPageCount(@Param("videoId")Long videoId,@Param("uid")Long uid);

}
